package bigdata.backend.meta.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("doris_column_meta")
public class DorisColumnMeta {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private Long tableId;
    private String columnName;
    private String columnType;
    private Boolean nullable;
    private String defaultValue;
    private String columnComment;
    private Integer ordinalPosition;
    private Boolean isKey;
    private Boolean isPartitionColumn;
    private String aggregationType;

    // 添加自动填充注解
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)

    private LocalDateTime updateTime;
    private String deleteFlag="0";
}
